package de.koller.libration.layer;

import de.koller.libration.display.LDisplay;
import de.koller.oceanFramework.gl.util.RasterManager;

public class ChessBoard extends LDisplay {

	public ChessBoard() {
		super( 10, 10 );
		
		RasterManager r = this.raster;
		for( int x = 0; x < r.getWidth(); x++ )
			for( int y = 0; y < r.getHeight(); y++ ) {
				boolean k = ((x%2==0) && (y%2==1)) || ((x%2==1) && (y%2==0));
				r.setPixel( k ? 0xff000000 : 0xffffffff, x, y );
			}
				
	}
	
}
